home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue39 / userint / ObjInsp.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-08-06  |  786 b   |  42 lines

  1. unit ObjInsp;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls, ExtCtrls, ComCtrls,DockForm, Grids;
  8.  
  9. type
  10.   TObjInspector = class(TDockableForm)
  11.     Panel1: TPanel;
  12.     Panel2: TPanel;
  13.     ComboBox1: TComboBox;
  14.     PageControl1: TPageControl;
  15.     TabSheet1: TTabSheet;
  16.     TabSheet2: TTabSheet;
  17.     procedure Panel2Resize(Sender: TObject);
  18.   private
  19.     { Private declarations }
  20.   public
  21.     { Public declarations }
  22.   end;
  23.  
  24. var
  25.   ObjInspector: TObjInspector;
  26.  
  27. implementation
  28.  
  29. {$R *.DFM}
  30.  
  31. procedure TObjInspector.Panel2Resize(Sender: TObject);
  32. begin
  33.   with ComboBox1 do begin
  34.     Width := Panel1.ClientWidth;
  35.     Panel1.ClientHeight := Height;
  36.     Top := 1;
  37.     Left := 1;
  38.   end;
  39. end;
  40.  
  41. end.
  42.